package com.kjs.web.Util;

import com.kjs.common.resultModel.JwtUser;
import com.kjs.web.pojo.Customers;

/**
 * @author xuedingjiexueergou@gmail.com
 * @date 2018/10/16 10:04
 */
public class JwtUtil {
    public static JwtUser fromJwtUser(Customers customers){
       JwtUser jwtUser = new JwtUser();
       jwtUser.setId(customers.getId());
       jwtUser.setUid(customers.getId());
       jwtUser.setSalt(customers.getSalt());
       return jwtUser;
    }
}
